package com.example.designpattern.c02_factory.abstract_factory.factory;

import com.example.designpattern.c02_factory.abstract_factory.product.AbstractFreezer;
import com.example.designpattern.c02_factory.abstract_factory.product.AbstractTV;
import com.example.designpattern.c02_factory.abstract_factory.product.HairFreezer;
import com.example.designpattern.c02_factory.abstract_factory.product.HairTV;

/**
 * 具体工厂
 * 实现抽象工厂里的多个方法，完成对具体产品的创建
 * @author spikeCong
 * @date 2022/9/15
 **/
public class HairFactory implements AppliancesFactory {

    @Override
    public AbstractTV createTV() {
        return new HairTV();
    }

    @Override
    public AbstractFreezer createFreezer() {
        return new HairFreezer();
    }
}
